<?php
	include "config.inc.php";//数据库配置文件
	header("Content-type:text/html;charset=utf-8");
	$db = @mysql_connect(DBHOST,DBUSER,DBPWD) or die("connect failed");
	mysql_select_db(DBNAME) or die("数据库不存在");
	mysql_query("set names ".DBCHARSET);#告诉mysql返回utf8
?>